package com.dhy.mapper;

import com.dhy.pojo.Employee;
import com.dhy.pojo.Permission;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {

    void insert(Employee employee);

    void deleteById(Long id);

    void update(Employee employee);

    Employee selectById(Long id);

    List<Employee> selectAll();

    //查询员工及其所属部门信息
    Employee selectByWithDepartment(Long id);
    //查询某个部门的所有员工信息
    List<Employee> selectByDepartmentId(Long departmentId);
}
